package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by Czl on 2015/9/14.
 */
@SuppressWarnings("serial")
public class MyExamLearningSetting extends Model<MyExamLearningSetting> {

    public static final MyExamLearningSetting dao = new MyExamLearningSetting();

    /**
     * 根据我的考试ID
     * 查询我的考试设置
     * @param myexamId
     * @return
     */
    public MyExamLearningSetting findByMyExamId(Long myexamId){
        return dao.findFirst("select * from t_myexam_learning_setting where myexam_id =?",myexamId);
    }

}
